#include <stdio.h>
#include <sys/types.h>
#include <dirent.h>

int main(int argc, char **argv)
{
	char *name = argv[1];
	DIR *dirp = opendir (name);
	struct dirent d ;
	d = readdir(dirp);
	printf("%s,%s",d.d_name, d.d_type);
}
